package all.pojo;

import java.io.Serializable;

/**
 * @author ：Yan Guang
 * @date ：Created in 2020/11/10 18:25
 * @description：
 */
public class Course implements Serializable {
    private Double credit;//学分
    private Double grade;//成绩
    private Double gradePoint;//绩点
    private String course;//课程名
    private String teacher;//老师

    public Course() {
    }

    public Course(Double credit, Double grade, Double gradePoint, String course, String teacher) {
        this.credit = credit;
        this.grade = grade;
        this.gradePoint = gradePoint;
        this.course = course;
        this.teacher = teacher;
    }

    public Double getCredit() {
        return credit;
    }

    public void setCredit(Double credit) {
        this.credit = credit;
    }

    public Double getGrade() {
        return grade;
    }

    public void setGrade(Double grade) {
        this.grade = grade;
    }

    public Double getGradePoint() {
        return gradePoint;
    }

    public void setGradePoint(Double gradePoint) {
        this.gradePoint = gradePoint;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "Course{" +
                "credit=" + credit +
                ", grade=" + grade +
                ", gradePoint=" + gradePoint +
                ", course='" + course + '\'' +
                ", teacher='" + teacher + '\'' +
                '}';
    }
}
